﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.PackageExtjs.Intellisense
{
    public class PropositionListItem
    {
        private string _myText;
		private int _myImageIndex;
		// properties 
		public string Text
		{
			get {return _myText;}
			set {_myText = value;}
		}
		public int ImageIndex
		{
			get {return _myImageIndex;}
			set {_myImageIndex = value;}
		}
		//constructor
		public PropositionListItem(string text, int index)
		{
			_myText = text;
			_myImageIndex = index;
		}
		public PropositionListItem(string text): this(text,-1){}
        public PropositionListItem() : this("") { }
		public override string ToString()
		{
			return _myText;
		}





        /*public string Text { get; set; }

        public int ImageIndex { get; set; }

		public PropositionListItem(string text, int index)
		{
			Text = text;
            ImageIndex = index;
		}
		
        public PropositionListItem(string text): this(text,-1){}

        public PropositionListItem() : this("") { }
		
        public override string ToString()
		{
			return Text;
		}*/
    }
}
